﻿// Decompiled with JetBrains decompiler
// Type: Netick.NetworkConnectionRequest
// Assembly: Netick, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 6726ECA1-C773-4CF7-8952-E81B30D93B52
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.dll
// XML documentation location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.xml

#nullable disable
namespace Netick;

public sealed class NetworkConnectionRequest
{
  public bool AllowConnection;

  public IEndPoint Source { get; internal set; }

  public byte[] Data { get; internal set; } = new byte[2048 /*0x0800*/];

  public int DataLength { get; set; }

  internal NetworkConnectionRequest()
  {
  }

  public void Accept() => this.AllowConnection = true;

  public void Refuse() => this.AllowConnection = false;
}
